import sys

class Prompt:
    def __init__(self, path="./prompts/"):
        self.path = path
        self.parda = self.F_read("parda.txt")
        self.shot = self.F_read("shot.txt")
        self.move = self.F_read("move.txt")
        self.ff = self.F_read("first_final.txt")
        self.appearance = self.F_read("appearance.txt")
        self.scene = self.F_read("scene.txt")

    def F_read(self, file_name):
        with open(self.path + file_name, "r", encoding='utf-8') as f:
            content = f.read()
        return content



class C2JSON:
    def __init__(self, path="./promptsJ/"):
        self.path = path
        self.parda = self.F_read("parda_2J.txt")
        self.shot = self.F_read("shot_2J.txt")
        self.move = self.F_read("move_2J.txt")
        self.ff = self.F_read("first_final_2J.txt")
        self.appearance = self.F_read("appearance_2J.txt")

    def F_read(self, file_name):
        with open(self.path + file_name, "r", encoding='utf-8') as f:
            content = f.read()
        return content
